#pragma once
#include <functional>
#include <string>
#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "Log.hpp"
#include "InetAddr.hpp"
using namespace LogModule;

enum SocketExitCode
{
    NORMAL = 0,
    SOCKET_ERROR,
    BIND_ERROR,
    LISTEN_ERROR,
    FORK_ERROR,
    READ_ERROR,
    WRITE_ERROR,
    USAGE_ERROR,
    CONNECT_ERROR,
    DAEMON_ERROR
};

class NoCopy
{
public:
    NoCopy(){}
    NoCopy(const NoCopy&) = delete;
    NoCopy& operator=(const NoCopy&) = delete;
};